# New ports collection makefile for:	rapidsvn
# Date created:		Jan 1, 2005
# Whom:			kuriyama@FreeBSD.org
#
# $FreeBSD: ports/devel/rapidsvn/Makefile,v 1.7 2006/02/23 10:36:14 ade Exp $
#

PORTNAME=	rapidsvn
PORTVERSION=	0.9.0
PORTREVISION=	1
CATEGORIES=	devel
MASTER_SITES=	http://www.rapidsvn.org/download/

MAINTAINER=	kuriyama@FreeBSD.org
COMMENT=	Cross-platform GUI front-end for the Subversion revision system

BUILD_DEPENDS=	apr-1-config:${PORTSDIR}/devel/apr-svn \
		${WXCONFIG}:${PORTSDIR}/x11-toolkits/${WXPORT} \
		neon-config:${PORTSDIR}/www/neon \
		${SVNDEP}:${PORTSDIR}/devel/subversion \
		${LOCALBASE}/share/xsl/docbook/VERSION:${PORTSDIR}/textproc/docbook-xsl

USE_X_PREFIX=	yes
USE_AUTOTOOLS=	autoconf:259 libtool:15
CONFIGURE_ARGS=	--with-wx-config=${WXCONFIG} \
	--with-apr-config=apr-1-config \
	--with-apu-config=apu-1-config \
	--with-docbook-xsl=${LOCALBASE}/share/xsl/docbook
CONFIGURE_ENV=	LDFLAGS="-L${X11BASE}/lib ${PTHREAD_LIBS}"
INSTALLS_SHLIB=	yes
MAN1=		rapidsvn.1

.if exists(${X11BASE}/bin/wxgtk2-2.6-config)
WXPORT=		wxgtk26
WXCONFIG=	wxgtk2-2.6-config
.elif exists(${X11BASE}/bin/wxgtk2u-2.6-config)
WXPORT=		wxgtk26-unicode
WXCONFIG=	wxgtk2u-2.6-config
.else
WXPORT=		wxgtk24
WXCONFIG=	wxgtk2-2.4-config
.endif
SVNDEP=		${LOCALBASE}/include/subversion-1/svn_types.h

.include <bsd.port.mk>
